﻿using System;
using System.Collections;
using System.Collections.Generic;
using Microsoft.Xna.Framework;

namespace VoxelSystem.VoxelSystem
{
    public enum RangeType
    {
        NearRange,
        FarRange,
        NearFarRange
    }

    public class VS_Voxel
    {
        private VS_VoxelSystem _root;

        private int _id;
        private Vector3 _position;
        private List<VS_GridCube> _influencedCubes;

        public VS_Voxel(VS_VoxelSystem root, Vector3 position)
        {
            _root = root;
            _id = root.VoxelCnt++;
            _position = position;
        }

        public float InfluenceRange
        {
            get { return _root.Settings.VoxelFarClip + _root.Settings.VoxelNearClip; }
        }
        public float NearRange
        {
            get { return _root.Settings.VoxelNearClip; }
        }
        public float FarRange
        {
            get { return _root.Settings.VoxelFarClip; }
        }
        public Vector3 Position
        {
            get { return _position; }
            set { _position = value; }
        }
        public int Id
        {
            get { return _id; }
        }
    }
}
